package Factory.abstractFatory;

/**
 * @ProjectName: 23种设计模式
 * @Package: Factory.abstractFatory
 * @ClassName: ModernFactory
 * @Author: renhan
 * @Description:
 * @Date: 2020/11/10 20:00
 * @Version: 1.0
 */
public class ModernFactory extends AbastractFactory {
    @Override
    Food creteFood() {
        return new Bread();
    }

    @Override
    Vehicle createVehicle() {
        return new Car();
    }

    @Override
    Weapon createWaepon() {
        return new Ak47();
    }
}
